<?php
/**
 * Sea Framework
 * 
 * @author Feilong Li <yeephp@gmail.com>
 * @license New BSD License 
 * @version $Id: CDatabase.php 19 2010-09-29 16:33:07Z yeephp $
 */

class CDatabase {
	
	protected static $_instance;
	
	public function __construct() {
		
	}
	
	public static function getInstance() {
		if (self::$_instance == null) {
			self::$_instance = new self();
		}
		return self::$_instance;
	}
	
	public static function factory() {
		if (self::$_instance == null) {
			self::$_instance = new self();
		}
		return self::$_instance;
	}
	
	public static function query($sql) {
		
	}
	
	public static function execute($sql) {
		
	}
	
	public static function insert($table, array $data) {
		
	}
	
	public static function update($table, $where, array $data) {
		
	}
	
	public static function delete($table, $where) {
		
	}
	
	
	
}//end class